﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel.DataAnnotations;

namespace Emz.Core.Models
{
    public class Client : EntityBase<int>
    {
        [Required]
        [StringLength(50)]
        public string Code { get; set; }
       
        [StringLength(200)]        
        public string FirmName { get; set; }

        [StringLength(300)]
        public string Address { get; set; }

        [StringLength(200)]
        public string ContactNo { get; set; }
        
        public double RegularOverTime { get; set; }
        public double SpecialOverTime { get; set; }
        public double SpecialHoliday { get; set; }
        public double LegalHoliday { get; set; }
        public double NightDiff { get; set; }
        public double Cola { get; set; }

        #region References        
        public virtual ICollection<Sector> Detachments { get; set; }
        #endregion

        public Client()
        {
            Detachments = new HashSet<Sector>();
        }
    }
}
